import axios from 'axios'

import { Toast } from 'antd-mobile'

axios.interceptors.request.use(function (config) {
	
	Toast.loading('Loading...', 1, () => {
	  console.log('Load complete !!!');
	});
	return config;
  }, function (error) {
	
	return Promise.reject(error);
  });
  
  
  axios.interceptors.response.use(function (response) {
	
	Toast.hide()
	return response;
  }, function (error) {
	
	return Promise.reject(error);
  });